package com.tuanzi.webtalk.domain;

/**
 * 雄关漫道真如铁，而今迈过从头越
 **/

/**
 * 单个聊天的话，我们需要创建一个对象，
 * 包含了：消息发送者，消息接收者，消息类型，单聊还是群聊，或者是单纯的群发消息
 */

public class SocketMsg {

    //聊天类型 群聊：0  单个：1
    private int type;

    //消息发送者
    private String sender;

    //消息接收者
    private String receiver;

    //消息
    private String message;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
